package file;

import java.io.File;

public class MkDirDemo {
    public static void main(String[] args) {
        int sum = 1;
        for(int i=0;i<10;i++){
            i++;
            sum+=i;

        }
        System.out.println(sum);
        File file = new File("demo");
        if (file.exists()){
            System.out.println("该目录已存在！");
        }else {
          //  file.mkdir();
            file.mkdirs();
            System.out.println("目录已创建！");
        }
    }
}
